package data;

import ru.diagram.activity.IMeteoActivity;

public class meteoData extends Thread {
	IMeteoActivity other;
	String dataURL;
	
	public meteoData(IMeteoActivity otherActivity, String a_url) {
		super();
		other = otherActivity;
		dataURL = a_url;
		start();
	}

	public void run() {
		
		String xml = SimpleXML.getXmlFromUrl(dataURL); // getting XML
		if (xml != "") other.resetData(SimpleXML.loadXml(xml));
	}	
}
